﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SMonsterSiegeResultMsg extends IMessageBase
    {
        public var bossCode:int;
        public var rank:int;
        public var iskiller:int;
        public var killName:String;
        public const _type:int = 5068;
        public static var _regist:SMonsterSiegeResultMsg = new SMonsterSiegeResultMsg(true);

        public function SMonsterSiegeResultMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SMonsterSiegeResultMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.bossCode);
            param1.writeInt(this.rank);
            param1.writeInt(this.iskiller);
            param1.writeString(this.killName);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.bossCode = param1.readInt();
            this.rank = param1.readInt();
            this.iskiller = param1.readInt();
            this.killName = param1.readString();
            return;
        }// end function

    }
}
